<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="icon" href="assets/images/favicon.ico"/>
    <title>老匹夫</title>
    <link rel="stylesheet" href="assets/libs/layui/css/layui.css"/>
    <link rel="stylesheet" href="assets/module/global.css"/>
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<body class="site-home">
    <!-- 头部 -->
    <div class="layui-header header header-index  layui-bg-cyan">
        <div class="layui-container">
            <a class="logo" href="/">
                <img src="assets/images/logo@2x.png" alt="老匹夫">
            </a>
            <ul class="layui-nav">
                <li class="layui-nav-item"><a href="#/home/index">首页</a></li>
                <li class="layui-nav-item"><a href="#/content/index">产品</a></li>
                <li class="layui-nav-item layui-hide">
                    <a href="javascript:;">解决方案</a>
                    <dl class="layui-nav-child">
                        <dd><a href="">移动模块</a></dd>
                        <dd><a href="">后台模版</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <i class="layui-icon layui-icon-login-wechat" lay-active="login"></i>
                </li>
            </ul>
        </div>

    </div>
    <!-- 主体部分 -->
    <div id="LAY_MAIN"></div>
    <!-- 底部 -->
    <div class="layui-footer layui-text">

    </div>
<!-- 加载动画 -->
<div class="page-loading">
    <div class="ball-loader">
        <span></span><span></span><span></span><span></span>
    </div>
</div>
<!-- js部分 -->
<script type="text/javascript" src="assets/libs/layui/layui.js"></script>
<script>document.write('<script src="assets/js/main.js?v=' + new Date().getTime() + '"><\/script>')</script>
<script>
    layui.use(['element','util','setter','QRCode','admin'], function(){
        var element = layui.element;
        var util = layui.util;
        var setter = layui.setter;
        var admin = layui.admin;
        //监听导航点击
        element.on('nav(demo)', function(elem){
            console.log(elem)
            layer.msg(elem.text());
        });
        util.event('lay-active', {
            login: function (){
                admin.req(setter.baseServer + '/login/getQrcode', function (res) {
                    if(res.code==200){
                        admin.open({
                            title:'二维码',
                            content: '<img width="220px" height="220px" src="'+res.data.url+'">',
                            area: ['200px','335px'],
                            btn:[],
                        });
                    }
                });
            }
        });
    });
</script>
</body>
</html>
